<!doctype html>
<html>
  <%
    var cdn = htmlWebpackPlugin.options.cdn || '',
        config = htmlWebpackPlugin.options.loginConfig || {},
        js = (htmlWebpackPlugin.files.js[0] || ''),
        css = (htmlWebpackPlugin.files.css[0] || ''),
        images = config.imageAttrs || [],
        dt = new Date().getTime();

        images.forEach((attr)=>{
          config[attr] && config[attr].length && cdn.length && (config[attr] = cdn+'/'+config[attr]+'?'+dt);
        });

    var title = config.TITLE || '标题',
        ico = config.ICO || '';
        ['TITLE','ICO'].forEach((attr)=>{
          delete config[attr];
        });
  %>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title><%=title%></title>
  <link rel="shortcut icon" href="<%=ico%>">
  <link href="<%=cdn %>/static/ux/element-ui/index.css" rel="stylesheet">
  <link href="<%=cdn %>/static/fonts/font.css" rel="stylesheet">
  <link href="<%=css %>" rel="stylesheet">
  <script type="text/javascript" src="/static/ux/babel-polyfill/polyfill.min.js"></script>
  <script>
    //登录页配置
    window.LOGIN_CONFIG = <%=JSON.stringify(config)%>
  </script>
</head>

<body style="margin:0;padding: 0;">
    <!-- <script src="//connect.qq.com/qc_jssdk.js" data-appid="101514611"
      data-redirecturi="https://suanbanyun.com/login.html" charset="utf-8" data-callback="true"></script> -->
    <script type="text/javascript" src="<%=cdn %>/static/ux/jquery/jquery-3.3.1.min.js"></script>
    <script src="<%=cdn %>/static/ux/vue/vue.min.js"></script>
    <script src="<%=cdn %>/static/ux/element-ui/index.js"></script>
    <script src="<%=cdn %>/static/ux/jqueryBase64/jquery.base64.js"></script>
    <script src="<%=js %>"></script>

    <!--cache file-->
    <iframe src="<%=cdn %>/static/data/cache.html" style="display:none;"></iframe>
</body>

</html>
